/**
 * Created by zzy on 2017/8/29.
 */
import React, {Component} from 'react';
import {
    Text,
    View,
    TouchableOpacity,
    Image,
} from 'react-native';

import Constant from '../Contant'
export default class ButtonControl extends Component{
    render(){
        let {title,click} = this.props;
        return <TouchableOpacity onPress={click} style={[styles.container,styles.center,styles.marginH]}>
            <Text style={{color:'#fff',fontSize:16}}>{title}</Text>
        </TouchableOpacity>
    }
}

const styles = {
    container:{
        borderWidth:1,
        borderRadius:4,
        height:36,
        backgroundColor:Constant.BLUECOLOR,
        borderColor:Constant.BLUECOLOR,
    },
    center:{
        justifyContent:'center',
        alignItems:'center'
    },
    marginH:{
        marginHorizontal:15
    }
};